package dao;

import bean.Student;

import java.util.List;

public interface StudentDao {
    /**
     * 查询所有学生
     * @return 返回学生对象的list集合
     */
    List<Student> selectStudents();

    /**
     * 通过id查询学生
     * @param id
     * @return 返回学生对象
     */
    Student selectStudentById(Integer id);

    int insertStudent(Student student);

    int updateStudent(Student student);

    int deleteStudentById(Integer id);
}
